< Prev(J) / Next(K) > / View :

Filename: /text/sbasic/shared/03101300.xhp

(section: defdate) (bookmark: bm_id3150504)
DefDate statement

DefDate ステートメント

DefDate Statement [Runtime]
DefDate ステートメント [実行時](hd_id3150504.1)

If no type-declaration character or keyword is specified, the DefDate statement sets the default variable type, according to a letter range.
DefDate ステートメントでは、型宣言子やキーワードが指定されない場合にデフォルトの変数型を適用する、変数名の文字範囲を指定します。(par_id3145069.2)

(/section: defdate)

Syntax:
構文:(hd_id3154758.3)

Defxxx Characterrange1[, Characterrange2[,...]]
Defxxx Characterrange1[, Characterrange2[,...]](par_id3148664.4)

Parameters:
パラメータ:(hd_id3150541.5)

Characterrange: Letters that specify the range of variables that you want to set a default data type for.
Characterrange: デフォルトのデータ型の設定対象である変数の範囲を指定する文字。(par_id3156709.6)

xxx: Keyword that defines the default variable type:
xxx: デフォルトの変数型を定義するキーワード。(par_id3150869.7)

Keyword: Default variable type
Keyword: デフォルトの変数型(par_id3145171.8)

DefDate: Date
DefDate: 日付(par_id3150767.9)

Example:
例:(hd_id3153768.10)

REM Prefix definitions for variable types:
REM 変数型のプレフィックスの定義:(par_id3145785.12)

DefBool b
DefBool b(par_id3146923.13)

DefDate t
DefDate t(par_id3155412.14)

DefDbL d
DefDbL d(par_id3153726.15)

DefInt i
DefInt i(par_id3147435.16)

DefLng l
DefLng l(par_id3153188.17)

DefObj o
DefObj o(par_id3153143.18)

DefVar v
DefVar v(par_id3150010.19)

Sub ExampleDefDate
Sub ExampleDefDate(par_id3149263.21)

tDate=Date REM tDate is an implicit date variable
tDate=Date REM ここで tDate は日付変数として解釈されます(par_id3152462.22)

end sub
end sub(par_id3149664.23)


< Prev / Next >